package com.shd.edanpei.customer.contract;

import com.shd.edanpei.base.BaseIPresenter;
import com.shd.edanpei.base.BaseIView;
import com.shd.edanpei.customer.bean.PayInfoModel;
import com.shd.edanpei.enums.PaymentEnum;

public interface PayContract {

    interface PayIView extends BaseIView {

        /**
         * 设置支付订单数据
         *
         * @param model
         */
        void setData(PayInfoModel model);
    }

    interface PayIPresenter extends BaseIPresenter {

        /**
         * 获取支付订单数据
         *
         * @param orderId 订单id
         */
        void getData(int orderId);

        /**
         * 支付押金
         *
         * @param orderId     订单id
         * @param paymentEnum 支付方式
         * @param index       该订单在列表中的位置
         */
        void payDeposit(int orderId, PaymentEnum paymentEnum, int index);


    }
}
